<?php
// +----------------------------------------------------------------------
// | User: zq
// +----------------------------------------------------------------------
// | 2021-09-15 22:26:24
// +----------------------------------------------------------------------
use Workerman\Worker;
require_once __DIR__ . '/workerman/Autoloader.php';

// 创建一个websocket协议的Worker监听7272接口
$worker = new Worker('websocket://0.0.0.0:7272');

// 只启动一个进程,这样方便